package com.qf.product.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qf.product.entity.Area;
import com.qf.product.mapper.AreaMapper;
import com.qf.product.service.AreaService;
import com.qf.product.vo.AreaVo;
import com.qf.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 行政区划表(QfArea)表服务实现类
 *
 * @author makejava
 * @since 2023-10-29 13:44:21
 */
@Service("AreaService")
public class AreaServiceImpl extends ServiceImpl<AreaMapper, Area> implements AreaService {

    @Autowired
    private AreaMapper areaMapper;

    @Override
    public Result<List<AreaVo>> findAll() {
        List<AreaVo> province = areaMapper.findAll();

        return new Result(0,"success",province);
    }
}

